package com.yangj.web;
import java.util.List;
import java.util.Map;
import com.yangj.dao.UserDao;
import com.yangj.model.User;
import net.sf.json.JSONArray;
public class GetUser extends JsonServlet {
  @Override
  public String dealInput(Map<String, String[]> input) {
    UserDao dao = new UserDao();
    List<User> serviceTypes=dao.getAll();
    return JSONArray.fromObject(serviceTypes).toString();
  }
}